<template>
  <div>
    douTitledouTitle

    <!--<button @click="getData()">获取数据</button>-->

    <div class="row col-md-10 col-md-offset-1">
      <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3" v-for="m in moveList">
        <div class="thumbnail">
          <img class="poster img" :src="m.images.large" alt="">
          <div class="caption">
            <p>{{m.title}}</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        moveList: []
      }
    },
    mounted:function () {
        this.axios({
          url: 'api/v2/movie/in_theaters',
          method: 'get'
        }).then((res) => {
          this.moveList = res.data.subjects;
          console.log(this.moveList)
        })
      }
//    }
  }
</script>
<style lang="css">
  .img {
    max-height: 300px;
  }
</style>
